package org.ourguy.mymoviesandshows.datamodel;

import android.graphics.Bitmap;

public class CoverArtFromImage implements ICoverArt {
	private android.graphics.Bitmap image;
	
	public CoverArtFromImage(){
		image = null;
	}
	
	public CoverArtFromImage(android.graphics.Bitmap _image){
		image = _image;
	}
	
	public android.graphics.Bitmap getImage(){
		return image;
	}
	
	public void setImage(android.graphics.Bitmap newImage){
		image = newImage;
	}

	public Bitmap loadInImageView(int width) {
		return image;
	}
	
	public Bitmap getThumbnail() {
		return Bitmap.createScaledBitmap(image, 200, (int)((200* image.getHeight()/image.getWidth())), true);
	}
	
}
